﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 发状态
{
    public partial class mainForm : Form
    {
        public mainForm()
        {
            InitializeComponent();
            dynamicPanel.Visible = true;
            dynamicAllPanel.BringToFront();
            //statePanel.SendToBack();
            toolTip1.SetToolTip(this.calendarFrameButton, "日程表");
            toolTip2.SetToolTip(this.logFrameButton, "日志");
            toolTip3.SetToolTip(this.photoFrameButton, "相册");
            toolTip4.SetToolTip(this.messageFrameButton, "留言");
            toolTip5.SetToolTip(this.infoFrameButton, "私信");
            toolTip6.SetToolTip(this.settingFrameButton, "个人资料管理");
            dynamicAP3Pic2.Visible = false;
        }

        private void refreshPictureBox_Click(object sender, EventArgs e)
        {
            this.Refresh();
        }

        private void privatePageButton_Click(object sender, EventArgs e)
        {
            //dynamicPanel.Visible = false;
            privatePanel.Visible = true;
            privatePanel.BringToFront();
            privateAllPanel.BringToFront();
        }

        private void stateButton_Click(object sender, EventArgs e)
        {
            /*this.panel2.Controls.Clear();
           Panel statePanel1 = new System.Windows.Forms.Panel();
           LinkLabel stateNameLabel1 = new System.Windows.Forms.LinkLabel();
           Label stateLabel1 = new System.Windows.Forms.Label();
           LinkLabel stateContentLabel1 = new System.Windows.Forms.LinkLabel();
           
            statePanel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            statePanel1.Location = new System.Drawing.Point(12, 16);
            statePanel1.Size = new System.Drawing.Size(504, 110);

            stateNameLabel1.Location = new System.Drawing.Point(79, 15);
            stateNameLabel1.Size = new System.Drawing.Size(41, 12);
            stateNameLabel1.Text = "杨薇然";

            statePanel1.Controls.Add(stateNameLabel1);
            statePanel1.Controls.Add(stateLabel1);
            statePanel1.Controls.Add(stateContentLabel1);

            panel2.Controls.Add(statePanel1);*/

            statePanel.BringToFront();
        }

        private void allThingButton_Click(object sender, EventArgs e)
        {
            dynamicAllPanel.BringToFront();
            //panel2.Visible = true;
            //panel7.Visible = false;
        }

        private void photoButton_Click(object sender, EventArgs e)
        {
            photoPanel.BringToFront();
        }

        private void logButton_Click(object sender, EventArgs e)
        {
            logPanel.BringToFront();
        }

        private void dynamicButton_Click(object sender, EventArgs e)
        {
            //privatePanel.Visible = false;
            dynamicPanel.Visible = true;
            dynamicPanel.BringToFront();
            dynamicAllPanel.BringToFront();
        }

        private void privateAllButton_Click(object sender, EventArgs e)
        {
            privateAllPanel.BringToFront();
        }

        private void privateInfoButton_Click(object sender, EventArgs e)
        {
            privateInfoPanel.BringToFront();
        }

        private void privateLogButton_Click(object sender, EventArgs e)
        {
            privateLogPanel.BringToFront();
        }

        private void privateMessageButton_Click(object sender, EventArgs e)
        {
            privateMessagePanel.BringToFront();
        }

        private void privatePhotoButton_Click(object sender, EventArgs e)
        {
            privatePhotoPanel.BringToFront();
        }

        private void privateStateButton_Click(object sender, EventArgs e)
        {
            privateStatePanel.BringToFront();
        }

        private void priStatePan1LinkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            stateForm stateForm1 = new stateForm();
            stateForm1.Show();
        }

        private void applicationButton_Click(object sender, EventArgs e)
        {
            applicationPanel.Visible = true;
            applicationPanel.BringToFront();
        }

        private void appPan1LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            homeworkHelpForm homeworkHF = new homeworkHelpForm();
            homeworkHF.Show();
        }

        private void logFrameButton_Click(object sender, EventArgs e)
        {
            privatePanel.Visible = true;
            privatePanel.BringToFront();
            privateLogPanel.BringToFront();
        }

        private void photoFrameButton_Click(object sender, EventArgs e)
        {
            privatePanel.Visible = true;
            privatePanel.BringToFront();
            privatePhotoPanel.BringToFront();
        }

        private void messageFrameButton_Click(object sender, EventArgs e)
        {
            privatePanel.Visible = true;
            privatePanel.BringToFront();
            privateMessagePanel.BringToFront();
        }

        private void infoFrameButton_Click(object sender, EventArgs e)
        {
            privatePanel.Visible = true;
            privatePanel.BringToFront();
            privateInfoPanel.BringToFront();
        }

        private void mainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

    }
}
